 module.exports = {
        devServer: {
            proxy: {
                '/': {
                    // 此处的写法，目的是为了 将 / 替换成项目目录
                    target: 'http://localhost/xm/public/index.php/Index/',
                    // 允许跨域
                    changeOrigin: true,
                    ws: true,
                    pathRewrite: {
                        '^/': ''
                    }
                }
            }
        }
    }